package com.ht.dao.emp;

import com.ht.bean.emp.Dep;
import com.ht.bean.emp.Workdiary;
import com.ht.util.Pager;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 王金宝
 * @date 2020/6/12 20:30
 * 
 */
public interface WorkdiaryMapper {

    int selworkday(Integer empid);//查询每个用户每周的周报总数

    int selworkcount();//查询总数

    Dep seldepperson(Integer empid);

    List<Workdiary> selectWorkdiary();

//    周报管理数据
    List<Workdiary> allPageWorkdiary(@Param("pager")Pager pager,@Param("checkstate")Integer checkstate, @Param("date1")String date1, @Param("date2")String date2 );

//    周报管理数据行数
    int allPageWorkdiaryRow(@Param("checkstate")Integer checkstate, @Param("date1")String date1, @Param("date2")String date2);

    List<Map> selMyWorkCheck(@Param("pager")Pager pager,@Param("checkperson") String checkperson);

    int selMyWorkCheckRow(String checkperson);

//    我的周报数据
    List<Workdiary> myworkdiary(@Param("pager")Pager pager, @Param("empid") Integer empid,@Param("date1")String date1, @Param("date2")String date2);

//    我的周报数据行数
    int myworkdiaryRow(@Param("empid") Integer empid, @Param("date1")String date1, @Param("date2")String date2);

    List<Workdiary> searchWorkdiary(Integer id);

    List<Map> selcheckwork(@Param("pager")Pager pager,@Param("checkstate") Integer checkstate, @Param("depid") Integer depid);

    int selcheckworkRow(@Param("checkstate") Integer checkstate, @Param("depid") Integer depid);

    List<Map> selcheckwork2(@Param("pager")Pager pager, @Param("empid") Integer empid, @Param("checkstate") Integer checkstate,@Param("depid") Integer deptid);

    int selcheckworkRow2(@Param("empid") Integer empid,@Param("checkstate") Integer checkstate,@Param("depid") Integer depid);

    int deleteByPrimaryKey(Integer worklogid);

    int insert(Workdiary record);

    int insertSelective(Workdiary record);

    Workdiary selectByPrimaryKey(Integer worklogid);

    int updateByPrimaryKeySelective(Workdiary record);

    int updateByPrimaryKey(Workdiary record);
}